SET SHADOW SHADING ON
This command will set the specified object to cast a hardware shadow.
SET SHADOW SHADING ON Object Number
SET SHADOW SHADING ON Object Number, Mesh Number, Shadow Range, Use Shader
Object Number
Integer
Specify an object number between 1 and 2415919103.
Mesh Number
Integer
This value is an integer number such as 1.
Shadow Range
Integer
This value is an integer number such as 1.
Use Shader
Integer
This value is an integer number such as 1.
This command does not return a value.
This command requires hardware specifically designed for this feature, as it"s a very intensive calculation. Use this command sparingly for best performance. Shader based shadows cannot be used in combination with animated bone models. You must use CPU based shadow rendering for this. To change the offset to reduce/increase self-shadowing artifact described above, simply copy the stencilshadow.fx from the effects folder of the compiler directory, and paste it into your project folder. Open it up and you can change the shader near the bottom to a value other than 0.1 to choose your own value.
No example code is provided for this command
BASIC3D Commands Menu
Index